﻿using System;
using System.IO;
using System.Windows;
using EOS.Data;
using EOS.Data.Utils;
using EOS.OverviewSettings;

namespace EOS
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public string[] OverviewXmls { get; set; }
        public EveOverview EveOverview { get; set; }


        public MainWindow()
        {
            var pathToEveExportedOverviewXmls
                = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments),
                               @"EVE\Overview");

            EveOverview =
                OverviewSettingsImporter.ImportOverviewXml(@"C:\Users\Max Lanovoy\Documents\EVE\Overview\bob-4.xml");

            OverviewXmls = Directory.GetFiles(pathToEveExportedOverviewXmls, "*.xml");

            DataContext = this;
            InitializeComponent();
            
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            //Migration migration = new Migration();

            //migration.Do();

//            var manager = new OverviewSettingsExporter(@"C:\Users\Max Lanovoy\Documents\EVE\Overview\bob-4.xml");


        
            

            MessageBox.Show("a");
        }

        private void listBoxProfiles_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
        {

        }
    }
}
